/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package assignment1;

import static org.junit.Assert.*;
import org.junit.Test;

/**
 *
 * @author Karin West
 * Student No: 201099764 [part-time]
 */
public class TestmyArrays {
   @Test
   public void testArrayContent()
   {
       myArray myArr = new myArray();

       String[] expectedArray =  {"apple", "pear", "orange"};
       String[] actualArray = myArr.getfruitArray();

       assertArrayEquals("The two arrays are equal.", expectedArray, actualArray);
   }
   
   @Test
    public void testmethodEqual()
    {
        myArray myArr = new myArray();
        
	myArr.setFruitJuiceName("lemon");
				
	String expected = ("lemon");
	String actual = myArr.getFruitJuiceName();
        
        assertEquals(expected, actual);
       	
    }
}
